<%@page import="java.util.Date"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
	String ids = request.getParameter("ids");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	    <%@ include file="../jslib/jquerylib.jsp" %> 
	<link rel="stylesheet" type="text/css" href="<%=path %>/web/style/layout.css" />
    <script type="text/javascript" src="<%=path %>/jslib/jquery.validate.min.js"></script>
    <script type='text/javascript' src="<%=request.getContextPath() %>/jslib/My97DatePicker/WdatePicker.js"  defer="defer"></script>
    <script type='text/javascript' src="<%=request.getContextPath() %>/jslib/jquery.form.js"></script>
    <script type="text/javascript" src="<%=request.getContextPath() %>/jslib/additional-methods.js"></script>
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/themes/default/easyui.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/themes/icon.css" />
	<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/demo.css" />
	<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/jquery-easyui-1.4.1/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/lhgdialog/lhgcore.lhgdialog.min.js?skin=mac"></script>
	    <style type="text/css">
 		  body{background:#ffffff; background-image:url(images/);}
 		  input{height:26px;}
        </style>    
	    <script type="text/javascript">
	    $(document).ready(function() {
			 $("#saveBtn").click(function(){
			 		var remark = $("#remark").val();
			 		var reg=new RegExp("\n","g"); 
					remark = remark.replace(reg,"<BR>"); 
			        window.returnValue = '{"remark":"'+remark+'","state":"save"}';
			        window.close();
	         });
	  		 $("#closeBtn").click(function(){
	  		 		window.returnValue = '{"state":"close"}';
			        window.close();
	         });
        })
    //任务意见
    	 function countlen1(textarea){
	       var elem = event.relatedTarget || event.srcElement || event.target ||event.currentTarget;    
	        if(event.keyCode!=8)
			{
			  if (textarea.value.length> 250){
			        alert("任务意见最多为250个字符,字符输入超出限制!");
			        textarea.value=textarea.value.substring(0,250);
			    }
			    return true;
	 	    }
	  }
    
	</script>
	</head>
	<body>
	<form id="pageFrom" action=""  name="" method="post" >
	<table width="100%" border="0" align="center" cellpadding="5" cellspacing="5" class="formTableNew">
	  <tr>
	    <div style="color:red; font-size:18px;">
	      &nbsp;&nbsp;填写意见
	    </div>
		<td >
		   <textarea rows="10" cols="36" style="width:350px" name="remark" id="remark"  onkeydown="countlen1(this)"></textarea>
		</td>
	  </tr>
	  <tr>
	    <td align="center" colspan="4" >
	    	<input type="button" id="saveBtn" value="确 定"  class="form_bt_orange" />
	        <input type="button" id="closeBtn" value="取 消" class="form_bt_orange" />
	    </td>
	  </tr>
	</table>
	</form>
  </body>
</html>
